﻿using CodeAngel.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace CodeAngel.Services
{
    [ServiceContract]
    public interface IDomainDataService
    {
        [OperationContract]
        DtoHost GetDtoHost(string aggregateType, string filter, string userName, string password);

        [OperationContract]
        DtoHost Save(string aggregateType, DtoHost dtoHost, string userName, string password);

        [OperationContract]
        int GetNextFriendlyID(string entityName);

        [OperationContract]
        void Delete(string aggregateType, Guid id, string userName, string password);

    }
}
